package top.eggcode.common.exception;

import top.eggcode.common.mvc.ResultStatus;

/**
 * 业务逻辑出错
 * 一般指业务逻辑有问题，没有得到期望的结果。
 * Created at 2022/6/23 11:38
 *
 * @author JiaQi Ding
 * @version 1.0
 */
public class ServiceLogicException extends ApplicationException {
    public ServiceLogicException(String message) {
        super(message);
    }

    public ServiceLogicException(String message, String location) {
        super(message, location);
    }

    public ServiceLogicException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceLogicException(Throwable cause, String message) {
        super(cause, message);
    }

    public ServiceLogicException(ResultStatus resultStatus, Throwable cause) {
        super(resultStatus, cause);
    }

    public ServiceLogicException(ResultStatus resultStatus, String message, String location) {
        super(resultStatus, message, location);
    }

    public ServiceLogicException(ResultStatus resultStatus, String location) {
        super(resultStatus, location);
    }

    public ServiceLogicException(ResultStatus resultStatus) {
        super(resultStatus);
    }

    public ServiceLogicException(Integer code, String message, String location) {
        super(code, message, location);
    }
}
